import logging

from eshop.lib.base import *

#from model import *

log = logging.getLogger(__name__)

class MainpageController(BaseController):


    def index(self):
        return self.view()
    
    def view (self):
        c.child_categories = model.ProductCategory.q.filter_by(parent_category_id=None)
        return render('/site/main_page.mako')
    